package com.bean;

import java.util.Date;

public class Collect {
    Date date=new Date();
    private String collectid;
    private String userid;
    private Integer flowerid;
    private Date createtime=date;
    private Flower flower;

    public String getCollectid() {
        return collectid;
    }

    public void setCollectid(String collectid) {
        this.collectid = collectid;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public Integer getFlowerid() {
        return flowerid;
    }

    public void setFlowerid(Integer flowerid) {
        this.flowerid = flowerid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Flower getFlower() {
        return flower;
    }

    public void setFlower(Flower flower) {
        this.flower = flower;
    }

    public Collect() {
    }

    public Collect(String collectid, String userid, Integer flowerid) {
        this.collectid = collectid;
        this.userid = userid;
        this.flowerid = flowerid;
    }

    public Collect(Date date, String collectid, String userid, Integer flowerid, Date createtime) {
        this.date = date;
        this.collectid = collectid;
        this.userid = userid;
        this.flowerid = flowerid;
        this.createtime = createtime;
    }

    public Collect(Date date, String collectid, String userid, Integer flowerid, Date createtime, Flower flower) {
        this.date = date;
        this.collectid = collectid;
        this.userid = userid;
        this.flowerid = flowerid;
        this.createtime = createtime;
        this.flower = flower;
    }

    @Override
    public String toString() {
        return "Collect{" +
                "date=" + date +
                ", collectid='" + collectid + '\'' +
                ", userid='" + userid + '\'' +
                ", flowerid=" + flowerid +
                ", createtime=" + createtime +
                ", flower=" + flower +
                '}';
    }
}
